<?php if (!empty($_["users"])): ?>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
   <tr>
      <th width="14%" align="left"><div class="thborder">姓名</div></th>
      <th width="16%" align="left"><div class="thborder">登录邮箱</div></th>
      <th width="15%"><div class="thborder">创建时间</div></th>
      <th width="15%"><div class="thborder">最近登录时间</div></th>
      <th width="9%"><div class="thborder">发布权限</div></th>
      <th width="9%"><div class="thborder">管理权限</div></th>
      <th width="11%" align="left"><div class="thborder">备注</div></th>
      <th width="11%"><div class="thborder">操作</div></th>
   </tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
   <?php 
   $i = 0;
   ?>
   <?php foreach($_["users"] as $user): ?>
   <?php 
   $permissionsText = '';
   if ($user->permissions & PERMISSION_JOB_ADMIN_ALL) {
      $permissionsText = '全部职位';
   } elseif ($user->permissions & PERMISSION_JOB_ADMIN_ASSIGNED) {
      $permissionsText = '指定职位';
   }
   ?>
   <tr <?=($i%2 == 0 ? '' : 'class="blue"')?> data-uid="<?php p($user->uid) ?>">
      <td width="14%" align="left" style="word-break:break-all;"><?php echo $user->displayname . ($user->block ? '<span class="notuseacct">停用</span>' : '');?></td>
      <td width="16%" align="left"><?=$user->uid?></td>
      <td width="15%" align="center"><?=JHtml::_('date', $user->createDate, 'Y-m-d H:i')?></td>
      <td width="15%" align="center"><?=isNullDate($user->lastvisitDate) ? '' : JHtml::_('date', $user->lastvisitDate, 'Y-m-d H:i')?></td>
      <td width="9%" align="center"><?=($user->permissions & PERMISSION_JOB_CRUD ? '<i class="havepost"></i>' : '')?></td>
      <td width="9%" align="center"><?=$permissionsText?></td>
      <td width="11%" align="left"><?=$user->note?></td>
      <td width="11%" align="center"><a href="javascript:;" title="编辑" class="edit_a edit_subacct"></a><a href="javascript:;" title="<?=($user->block ? '点击启用' : '点击停用')?>" class="edit_a block_subacct <?=($user->block ? 'useornotred_subacct' : 'useornot_subacct')?>"></a><a href="javascript:;" title="删除" class="edit_a delete_subacct"></a></td>
   </tr>
   <?php $i++; ?>
   <?php endforeach; ?>
</table>
<?php endif; ?>